package com.dubito.retrofit.api

import com.dubito.retrofit.OfficialAccount
import com.dubito.retrofit.PwdLoginReq
import retrofit2.Call
import retrofit2.http.Body
import retrofit2.http.GET
import retrofit2.http.POST
import retrofit2.http.Query

/**
 * @author by liliang on 2020/6/17 4:58 PMå
 */
interface UserMgrService {

    @GET("/wxarticle/chapters/json")
    suspend fun login(): OfficialAccount

    @GET("/client-api/login/loginCaptcha")
    suspend fun loginCaptcha(@Query("phone") phone: String): Any

    @POST("/client-api/login/pwdLogin")
    suspend fun pwdLogin(@Body pwdLoginReq: PwdLoginReq): Any
}